package com.miranteinfo.seam.jsf.util;

import java.util.MissingResourceException;

import org.jboss.seam.core.SeamResourceBundle;

public abstract class ResourceBundle {

	private static String MIRANTE_SEAM_BUNDLE_NAME = "mirseamMessages";
	
	public static String getBundleMessage(String messageKey){
		try{
			return SeamResourceBundle.getBundle().getString(messageKey);
		}catch (MissingResourceException e) {
			return SeamResourceBundle.getBundle(MIRANTE_SEAM_BUNDLE_NAME).getString(messageKey);
		}
	}
	
}
